import http from '@/utils/http/axios';


//获取权限列表
export function fetchAuthListPage(params) {
    return http.request({
        url: `/system/auth/fetchAuthListPage`,
        method: 'get',
        params
    })
}

//新增权限
export function addAuth(params) {
    return http.request({
        url: `/system/auth/addAuth`,
        method: 'post',
        params
    })
}

//删除权限
export function deleteAuth(params) {
    return http.request({
        url: `/system/auth/deleteAuth/${params}`,
        method: 'delete',
    })
}

//更新权限
export function updateAuth(params) {
    return http.request({
        url:`/system/auth/updateAuth`,
        method: 'put',
        params
    })
}

